package cn.formaggie.dao;

import cn.formaggie.entity.model.roleandpermission.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RoleDao {

    Role getRoleById(@Param("id") Integer id);

    List<Role> findRoles(Map<String,Object> map);

    List<Role> findAllRoles();

    Integer getRolesCount(Map<String,Object> map);

    Integer addRole(Role role);

    Integer deleteRole(Integer id);

    Integer modifyRoleInfo(Role role);
}
